package SmartFurniture.Factory.Huawei;

import SmartFurniture.AbstractBuilder.SpeakerBuilder;
import SmartFurniture.Entity.Speaker;


//创建者模式
public class HuaweiSpeakerBuilder extends SpeakerBuilder {

     public void HuaWeiSpeakerBuilder() {
        this.speaker = new Speaker();
     }

    public void buildSpeakername() {
        speaker.setSpeakername("华为音箱");
    }

     public void buildSoundRecognition() {
        speaker.setSoundRecognition("华为语音识别系统");
     }

     public void buildWifi() {
        speaker.setWifi("华为WIFI-6G");
     }

     public void buildSoundEffect() {
        speaker.setSoundEffect("华为特供音效");
     }

     public void buildHelper() {
        speaker.setHelper("小艺小艺");
     }

     public Speaker getSpeaker() {
         System.out.println("组装华为音箱");
         return speaker;
     }
}
